package gameoflife;

import java.awt.Color;

import javax.swing.table.DefaultTableCellRenderer;

public class CellRenderer extends DefaultTableCellRenderer {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public void setValue(Object value) {
		if ((Boolean) value) {
			setBackground(Color.GREEN);
		} else {
			setBackground(Color.GRAY);
		}
	}
}
